
Pod::Spec.new do |s|
	s.name         = "SDK_AlipaySDK"
	s.version      = "15.2.1"
	s.summary      = "SDK_AlipaySDK."
	s.description  = <<-DESC
	个人使用的支付宝支付SDK
	 含Core ，order , util 三个组件
	core:  只含framework 
	order：订单模型，和签名
	util: 加密方法
			DESC
	s.author	= { "tanpengsccd" => "tanpengcd@gmail.com" } 
  	s.homepage     = "http:/blog.tanpengcd.cn"
	s.platform     = :ios, "7.0"
	s.source       = { :git => "https://git.oschina.net/tanpengsccd/SDK_AlipaySDK.git", :tag => "#{s.version}" }
	s.requires_arc = true

	s.subspec "Core" do |core|
		core.source_files  = "AlipaySDK.framework/Headers/*.h"
		core.public_header_files = "AlipaySDK.framework/Headers/*.h"
		core.resource = "AlipaySDK.bundle"
		core.frameworks = "SystemConfiguration","CoreTelephony","QuartzCore","CoreText","CoreGraphics","UIKit","Foundation","CFNetwork","CoreMotion"
		core.ios.vendored_framework = "AlipaySDK.framework"
		core.libraries = "c++", "z"
	end

	s.subspec "Order" do |order|
		order.source_files = "AliSDKDemo/AliSDKDemo/Order.{h,m}"
		order.public_header_files = "AliSDKDemo/AliSDKDemo/Order.h"
		order.dependency "OpenSSL", '<= 1.0.208'
		order.dependency "SDK_AlipaySDK/Core"
	end

	s.subspec "Util" do |util|
		util.source_files = "AliSDKDemo/AliSDKDemo/util/*.{h,m}"
		util.public_header_files = "AliSDKDemo/AliSDKDemo/util/*.h"
		util.dependency "OpenSSL" , "<= 1.0.208"
	end

end
